<?php 
include 'common.php';
$_SESSION['code'] = str_rand();
$forget = (int)$_GET['forget'];
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>找回密码</title>
	<link href="<?=$website['public'];?>/web/base.css" rel="stylesheet" type="text/css" />
	<link href="<?=$website['public'];?>/web/forget.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
	<div class="title">
		<div class="headerlogo left">
			<a href=""><img src="<?=$website['public'];?>/web/img/13.png" style="width:185px; height:50px;" /></a>
		</div>
		<div class="headername left">会员中心</div>	
		<div class="header_info right">已注册会员请<a href="login.php">登录</a>,或立即<a href="register.php">注册新会员</a></div>
	</div>
</div>
<div class="container">
	<div class="dux_auto">
		<div class="login_show left">
			<img src="<?=$website['public'];?>/web/img/15.png" style="width:550px;height:450px;">
		</div>
		<div class="login_form left">
			<div class="login_titile">找回密码</div>
			<div class="login_form_body">
			<?php if ($forget === 1) { ?>
				<form class="form" action="judge/forget1_if.php" method="post">
					<div class="denglu2">
						<label class="deng_lu">新密码</label>
						<input type="password" name="password" placeholder="请输入新密码" class="in_put">
					</div>
					<div class="denglu2">
						<label class="deng_lu">新密码</label>
						<input type="password" name="password1" placeholder="请输入确定密码" class="in_put">
					</div>
					<div class="form_field">
						<button type="submit" class="butt_on">修 改 密 码</button>
					</div>
					<div class="form_bottom">还不是会员? <a href="register.php">立即注册</div></a>
				</form>
			<?php }else { ?>
				<form class="form" action="judge/forget_if.php" method="post">
					<div class="denglu1">
						<label class="deng_lu">账号</label>
						<input type="text" name="username" placeholder="请输入账号" class="in_put">
					</div>
					<div class="denglu1">
						<label class="deng_lu">邮箱</label>
						<input type="text" name="email" placeholder="请输入邮箱" class="in_put">
					</div>
					<div class="denglu">
						<label class="deng_lu1">验证码</label>
						<input type="text" name="code" placeholder="请输入验证码" class="in_put1">
						<input type="button" name="code1" class="code" value="<?php echo $_SESSION['code'];?>">
					</div>
					<div class="form_field">
						<button type="submit" class="butt_on">验 证 信 息</button>
					</div>
					<div class="form_bottom">还不是会员? <a href="register.php">立即注册</div></a>
				</form>
			<?php	}?>
			</div>
		</div>
	</div>
</div>
<div class="bottom">Copyright 2016 DuxShop.com, All Rights Reserved</div>
</body>
</html>
